package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * The persistent class for the smart_docente database table.
 * 
 */
@Entity
@Table(name="smart_docente")
@NamedQuery(name="SmartDocente.findAll", query="SELECT s FROM SmartDocente s")
public class SmartDocente implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sm_scdocente")
	private Integer smscdocente;

	@Column(name="sm_codocente")
	private String smcodocente;
	
	@Column(name="sm_cousuario")
	private String smcousuario;
	
	@Column(name="sm_fhingreso")
	private Date smfhingreso; 				
	                
	@Column(name="sm_fhmodificacion")
	private Date smfhmodificacion; 				

	@Column(name="sm_fhretiro")
	private Date smfhretiro; 	                                 
	          
	@ManyToOne(optional = false, fetch = FetchType.LAZY)
	@JoinColumn(name="sm_scpersona",referencedColumnName="sm_scpersona")
	private SmartPersona smartpersona;

	public Integer getSmscdocente() {
		return smscdocente;
	}

	public void setSmscdocente(Integer smscdocente) {
		this.smscdocente = smscdocente;
	}

	public String getSmcodocente() {
		return smcodocente;
	}

	public void setSmcodocente(String smcodocente) {
		this.smcodocente = smcodocente;
	}

	public String getSmcousuario() {
		return smcousuario;
	}

	public void setSmcousuario(String smcousuario) {
		this.smcousuario = smcousuario;
	}

	public Date getSmfhingreso() {
		return smfhingreso;
	}

	public void setSmfhingreso(Date smfhingreso) {
		this.smfhingreso = smfhingreso;
	}

	public Date getSmfhmodificacion() {
		return smfhmodificacion;
	}

	public void setSmfhmodificacion(Date smfhmodificacion) {
		this.smfhmodificacion = smfhmodificacion;
	}

	public Date getSmfhretiro() {
		return smfhretiro;
	}

	public void setSmfhretiro(Date smfhretiro) {
		this.smfhretiro = smfhretiro;
	}

	public SmartPersona getSmartpersona() {
		return smartpersona;
	}

	public void setSmartpersona(SmartPersona smartpersona) {
		this.smartpersona = smartpersona;
	}
}